/**
 * 退出登录
 */
function loginout() {
	if (confirm('确定退出?')) {
		window.location.href = "../login/loginout";
	}
}

$(function() {
	if($.cookie("staffCode") != "2"){
		$('#admin').parent().hide();
	}
	$('#mainframe').load('/shop/ad/list.html');
	$(".sub-menu a", $('#leftside-navigation')).click(
		function() {
			var id = $(this).attr("id");
			var directory = '';
			switch (id){
				case 'adManage':$('#mainframe').load('/shop/ad/list.html');break;
				case 'messageManage': $('#mainframe').load('/shop/message/list.html');break;
				case 'predict':$('#mainframe').load('/shop/predict/predict.html');
				case 'admin': $('#mainframe').load('/shop/account/admin.html')
			}
		});
});